package com.ruowei.modules.member.repository;

import com.ruowei.common.repository.BaseRepository;
import com.ruowei.modules.member.domain.Member;

import com.ruowei.modules.member.domain.QMember;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * Spring Data  repository for the Member entity.
 */
@SuppressWarnings("unused")
@Repository
public interface MemberRepository extends BaseRepository<Long, Member, QMember> {
    Boolean existsByOpenId(String openId);

    Optional<Member> findByOpenId(String openId);
}
